<%@ page language="Java" import="java.util.*,descriptor.*" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<%
	StudentListDescriptor studentList = (StudentListDescriptor)request.getAttribute("studentList");
	DegreeListDescriptor degreeList = (DegreeListDescriptor)request.getAttribute("degreeList");
	RecruiterDescriptor recruiter = (RecruiterDescriptor)request.getAttribute("recruiter");
	if(recruiter == null){
		response.sendRedirect("index.jsp");
	}

%>
<html>
	<jsp:include page="recruiterHeader.jsp" >
		<jsp:param name="pageTitle" value="Work Placement Management System - Recruiter" />
	</jsp:include>
	<body OnLoad="showmenu(document.getElementById('smenu2'));">
		<jsp:include page="recruiterPageHeader.jsp"></jsp:include>
		<div id="container">
			<jsp:include page="recruiterMenu.jsp" ></jsp:include>
			<div id="content">
			<h3 class="posttitle">You have <%=studentList.getStudentList().size()%> interested students</h3>
				<div class="entry">

<table cellpadding="0" cellspacing="10" border="0">

<tr>
<td>Name</td><td>Degree</td>
</tr>

<%
for(StudentDescriptor student: studentList.getStudentList()){
%>
<tr>
<td><a href="RecruiterServlet?page=recruiterViewStudent&amp;studentId=<%=student.getId()%>"><%=student.getFirstName()%> <%=student.getSurName()%></a></td><td><%=degreeList.getDegreeName(student.getDegree())%> </td>
</tr>
<%
}
%>

</table>



				</div>
	    	</div>
			<jsp:include page="recruiterPageFooter.jsp"></jsp:include>
		</div>
	</body>
</html>